package cn.kgc.mapper;

import cn.kgc.bean.pojo.CDepartment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 法院机构管理
 * 部门管理
 */
@Mapper
public interface DepartmentManagerMapper {
    //部门管理
    //查
    List<CDepartment> selectAll();
    //增
    int addDepartment(@Param("cDepartment") CDepartment cDepartment);
    //删
    int deleteDepartmentById(long id);
    //改：根据id查询返回数据进行修改
    CDepartment selectAllById(long id);
    int updateDepartment(@Param("cDepartment") CDepartment cDepartment);
    //模糊查询
    List<CDepartment> selectByName(String name);
}
